package com.boang.obj;

import java.util.Objects;

/*
    @author:sa
    @date:2024/11/22 14:04
*/
public class ObjectDemo extends Object {
    public static void main(String[] args) {
        Student s01 = new Student("张三");
        Student s02 = new Student("张三");
        System.out.println(s01.equals(s02));
        String name01="张三";
        String name02="张三";
//        System.out.println(name01.equals(name02));
//        System.out.println(s01.toString());
//        System.out.println(name01.toString());
//        System.out.println(s01.hashCode());
//        System.out.println(s02.hashCode());
        if (!Objects.isNull(s01)){
            System.out.println(Objects.isNull(s01));
        }
    }
}